package com.mvp.shq.washer.ui.coupon;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.result.CouponResult;
import com.mvp.shq.washer.http.Api;
import com.mvp.shq.washer.http.RxSchedulers;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/24.
 */

public class CouponModel implements CouponConstract.Model {
    @Override
    public Observable<BaseResult<CouponResult>> coupons(String token, String userId, int pageNo, int pageSize) {
        return Api.getInstance().service
                .coupons(token,userId,pageNo,pageSize)
                .compose(RxSchedulers.io_main());
    }
}
